package com.nisco.nio.socket;

import java.io.IOException;
import java.net.Socket;

public class SocketTest {
    public static void main(String[] args)
        throws IOException {
        System.out.println("client 连接准备=" + System.currentTimeMillis());
        Socket socket = new Socket("www.baidu.com", 80);
        System.out.println("client 连接结束=" + System.currentTimeMillis());
        socket.close();
    }
}
